cmake_minimum_required(VERSION 3.21)
project(D3DHook)

set(CMAKE_CXX_STANDARD 20)

include_directories("C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\Include")

FILE(GLOB_RECURSE FILE_SOURCES
        ${CMAKE_CURRENT_SOURCE_DIR}/lib/ImGui/*.h*
        ${CMAKE_CURRENT_SOURCE_DIR}/lib/ImGui/*.c*
        ${CMAKE_CURRENT_SOURCE_DIR}/lib/Epiphany/*.h*
        ${CMAKE_CURRENT_SOURCE_DIR}/lib/Epiphany/*.c*
        ${CMAKE_CURRENT_SOURCE_DIR}/lib/InlineHook/*.h*
        )

link_directories("C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\Lib\\x86")

add_library(D3DHook SHARED dllmain.cpp RendererHelper.hpp Utils.hpp ClickGui.hpp ImGuiHelper.hpp ${FILE_SOURCES})

target_link_libraries(D3DHook d3d9.lib)
